package cate.common.table.activity.heroup.herostarup;


import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import cp.solution.util.str.Str;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;
import org.apache.commons.lang3.StringUtils;

import java.util.ArrayList;
import java.util.List;

@NoteClass("升星礼包")
public class HeroStarUpRow extends ERow {
    @NoteField("免费奖励")
    public String freeReward;
    @NoteField("活动配置ID")
    public int configId;
    @NoteField("付费礼包")
    public String payGiftPack;
    @NoteField("价格")
    public double price;
    @NoteField("道具价格")
    public String propPrice;
    @NoteField("购买类型")
    public int type;
    @NoteField("充值项ID")
    public int payId;
    @NoteField("限购次数")
    public int limit;


    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("英雄ID");
        this.freeReward = xrw.getString("免费奖励");
        this.configId = xrw.getInteger("活动配置ID");
        this.payGiftPack = xrw.getString("付费礼包");
        this.price = xrw.getDouble("价格",0.0);
        this.propPrice = xrw.getString("道具价格");
        this.payId = xrw.getInteger("充值项ID",0);
        this.type =  xrw.getInteger("购买类型",0);
        this.limit = xrw.getInteger("限购次数",-1);
    }


    @Override
    public void decode() {
        super.decode();
    }
}
